@include b(odoo-chat) {
  position: fixed;
  right: getCssVar(spacing, base, loose);
  bottom: getCssVar(spacing, base, loose);
  z-index: 1000;
  display: flex;
  align-items: end;
  @include e(options) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: getCssVar(color, text, 3);
    cursor: pointer;
    visibility: hidden;
    border: 1px solid getCssVar(color, border);
    border-radius: 50%;
    box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 7.5%);

    &:hover {
      color: getCssVar(color, text, 0);
      background-color: getCssVar(color, fill, 2);
    }
    @include when(active) {
      visibility: visible;
    }
    @include m(item) {
      display: flex;
      gap: 8px;
      align-items: center;
      padding: 5px 10px;
      cursor: pointer;

      &:hover {
        background-color: getCssVar(color, fill, 2);
      }
    }
  }

  @include e(bubbles) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: end;

    &:hover {
      .#{bem(odoo-chat, options)} {
        visibility: visible;
      }
    }
  }

  @include e(bubble) {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 25px;
    color: getCssVar(color, primary, text);
    cursor: pointer;
    background-color: getCssVar(color, primary);
    border-radius: 50%;

    &:hover {
      background-color: getCssVar(color, primary, hover);
      .#{bem(odoo-chat, bubble, close-icon)} {
        visibility: visible;
      }
    }

    @include m(minimize) {
      width: 50px;
      height: 50px;
    }

    @include m(close-icon) {
      position: absolute;
      top: -4px;
      right: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      font-size: 12px;
      color: getCssVar(color, text, 0);
      visibility: hidden;
      background-color:getCssVar(color, bg, 3);
      border: 1px solid getCssVar(color, border);
      border-radius: 50%;
    }
  }

  @include e(windows) {
    display: flex;
    flex-grow: 1;
    gap: 12px;
    align-items: end;
    margin-right: 12px;
    @include m(item) {
      z-index: 1001;
    }
  }
}
